<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<img th:src="@{${imgPath}}" alt="">
<br>
<a th:href="@{'/download/'+${fileName}}">下载图片</a>
</body>
</html>